package fuxi01;

public class Demo2 {
    String name;
    int age;
    String gender;

    public void study(){
        System.out.println("studying");
    }

    public void showAge(){

        System.out.println("当前年纪为" + age);
    }

    public int addAge(int ageParam){
        System.out.println("增加了"+ ageParam +"岁");
        age = age + ageParam;

        return age;
    }
}

